package com.ruoyi.coffee.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author dxj
 * @Description 地址Dto
 * @date 2025/1/7 11:42
 */
@Data
@ApiModel(description = "用户地址Dto")
public class AddressDto {
    /**
     * 地址id
     */
    @ApiModelProperty(value = "地址id", required = false, example = "1894574554122447")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true, example = "18745445547457")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    /**
     * 收货人姓名
     */
    @ApiModelProperty(value = "收货人姓名", required = true, example = "张三")
    private String receiverName;

    /**
     * 收货人电话
     */
    @ApiModelProperty(value = "收货人电话", required = true, example = "18754545744")
    private String receiverPhone;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址", required = true, example = "广西贵港市港南区港南街道")
    private String address;


    /**
     * 是否是默认地址
     */
    @ApiModelProperty(value = "是否是默认地址", required = true, example = "true")
    private Long isDefault;
}
